package com.wzx.ptplatform.service;

import com.wzx.ptplatform.domain.CollectMessage;
import com.wzx.ptplatform.utils.PtplatformException;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author 紫煦桉
 */
public interface CollectMessageService {

    /**
     * findList
     * @param collectMessage
     * @param page
     * @param limit
     * @return
     * @throws PtplatformException
     */
    Page<CollectMessage> findList(CollectMessage collectMessage, Integer page, Integer limit) throws PtplatformException;

    /**
     * findById
     * @param id
     * @return
     * @throws PtplatformException
     */
    CollectMessage findById(long id) throws PtplatformException;

    /**
     * saveOrEdit
     * @param collectMessage
     * @return
     * @throws PtplatformException
     */
    boolean saveOrEdit(CollectMessage collectMessage) throws PtplatformException;

    /**
     * deleteById
     *
     * @param id
     * @return
     * @throws PtplatformException
     */
    boolean deleteById(long id) throws PtplatformException;

    /**
     * findByStudentId
     *
     * @param id
     * @return
     */
    List<CollectMessage> findByStudentId(long id);
}
